function getPayableList (params) {
    return $axios({
        url: '/payable/page',
        method: 'get',
        params
    })
}

// 修改页面反查详情接口
function queryUserById (id) {
    return $axios({
        url: `/payable/${id}`,
        method: 'get'
    })
}

function addPayable (params) {
    return $axios({
        url: '/payable',
        method: 'post',
        data: { ...params }
    })
}

function editPayable (params) {
    return $axios({
        url: '/payable',
        method: 'put',
        data: { ...params }
    })
}

// 删除
function deleteById(id){
    return $axios({
        url: '/payable',
        method: 'delete',
        params: {id}
    })
}
